package com.etd.base.domain;

import java.util.ArrayList;
import java.util.List;
/**
 * 
 * 用于bootstrap datatable 数据集封装javabean对象，
 * bootstrap datatable 可直接load加载封装后的数据集
 * @author : jackson wang
 * @Date   : 2016年9月16日 下午10:01:07
 * @version: 1.0
 * 
 */
public class DataTableListDomain<T> {
	
	
	private Integer draw;
	
	private String error;
	
	
	
	//bootstrap dataTable 参数
	private Integer recordsTotal;
	
	private Integer recordsFiltered;	
	
	private List<T> data;
	
	public DataTableListDomain(){
		recordsTotal = 0;
		data = new ArrayList<T>();
		
	}
	
	public DataTableListDomain(String err){
		recordsTotal = 0;
		data = new ArrayList<T>();
		error = "err";
	}

	public Integer getDraw() {
		return draw;
	}

	public void setDraw(Integer draw) {
		this.draw = draw;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Integer getRecordsTotal() {
		return recordsTotal;
	}

	public void setRecordsTotal(Integer recordsTotal) {
		this.recordsTotal = recordsTotal;
	}

	public Integer getRecordsFiltered() {
		return recordsFiltered;
	}

	public void setRecordsFiltered(Integer recordsFiltered) {
		this.recordsFiltered = recordsFiltered;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	
}
